package routes

import (
	"gin/routes/es"
	"gin/routes/mongo"
	"gin/routes/test"
	"gin/routes/user"

	"github.com/gin-gonic/gin"
)

func SetupRouter() *gin.Engine {
	r := gin.Default()
	r.GET("/", func(c *gin.Context) {
		c.String(200, "连接成功")
	})
	user.UserRoute(r)
	test.Test(r)
	mongo.MongoRouter(r)
	es.ESRouter(r)
	return r
}
